package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type Notice struct {
	ID        int `gorm:"primary_key"`
	UserId    uint
	Content   string
	Link      string
	ImageUrl  string
	CreatedAt time.Time `gorm:"column:create_time"`
}

func (Notice) TableName() string {
	return fmt.Sprintf("%snotice", models.Prefix)
}
